package com.lyf.lottery.util;

import static com.lyf.cache.constant.RedisConstant.NAMESPACE_DELIMITER;
import static com.lyf.cache.constant.RedisConstant.REDIS_LOCK_PREFIX;

/**
 * @author yunfei.li
 * @date 2022/4/28 15:54
 */
public class RedisKeyUtils {
    public static String getLockName(Integer activityId, Long userId) {
        return REDIS_LOCK_PREFIX + activityId + NAMESPACE_DELIMITER + userId;
    }
}
